from rest_framework import serializers

class UserCountSerializer(serializers.Serializer):
    jscode = serializers.CharField(max_length=128,required=True,label="用户标识符")
    html_or_goods = serializers.CharField(min_length=4,max_length=5,default='html',label="页面或者商品标识符")
    stay_time = serializers.IntegerField(required=True,min_value=0,label="停留时间")
    end_flag = serializers.BooleanField(default=False,label="结束标识符")


